#pragma once

#include <string>
#include <vector>

#include "myBaseIEObject.h"


#define JS_CODE_LEN 4096
#define WM_BEGIN_NAV (WM_USER+0x01)
#define WM_END_NAV (WM_USER+0x02)

class myBaseIEObj;
class injecter
{
public:
	injecter(myBaseIEObj *pIEObj, HWND hWnd);
	~injecter();
	BOOL InjectJsCode();
	BOOL AddName(const std::wstring &wstrName);
	BOOL OnGetNameOver();
	BOOL Nav();

private:
	char m_jscode[JS_CODE_LEN];
	myBaseIEObj *m_pIEObj;
	std::vector<std::wstring> m_Names;
	HWND m_hWnd;
};